<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/usertemplate.xhtml">
        <ui:define name="title">
            <h:outputText value="List Topic"></h:outputText>
        </ui:define>
        
        <ui:define name="leftcontent">
            <h:form>
            <div class="pad_left1">
                    <h2 class="pad_bot1">Basic Topic</h2>
            </div>
            <div class="wrapper pad_bot1">
                <figure class="left marg_right1"><img src="../../resources/img/page2_img1.jpg" alt=""/></figure>
                <p class="pad_bot1 pad_top2"><strong>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</strong></p>
                <p>
                                Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur sint occaecat.</p>
            </div>
            <div class="pad_left1">
                <div class="box2">
                    <div class="wrapper">
                        <div class="cols">   
                            <h:dataTable value="#{topicController.items}" var="item" class="list3">
                                <h:column>
                                    <h:commandLink action="#{courseController.findAllCourseByTopicIdForUser()}" value="#{item.topicName}">
                                        <f:setPropertyActionListener value="#{item}" target="#{courseController.topic}"/>
                                    </h:commandLink>
                                </h:column>
                            </h:dataTable>
                        </div>
                    </div>
                </div>
                <p><strong>At vero eos et accusamus et iusto odio</strong> dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupidi- tate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fugat harum quidem rerum facilis est et expedita distinctio. </p>
                </div>
                <a href="#" class="button"><span><span>Read More</span></span></a>
            </h:form>
        </ui:define>
        <ui:define name="rightcontent">
            <h:form>
                <div class="pad_left1">
                    <h2>Special Topic</h2>
                </div>
                <h:dataTable value="#{topicController.items}" var="item" class="list1 pad_bot1">
                            <h:column class="list1 pad_bot1">
                                <h:commandLink action="#{courseController.findAllCourseByTopicIdForUser()}" value="#{item.topicName}">
                                    <f:setPropertyActionListener value="#{item}" target="#{courseController.topic}"/>
                                </h:commandLink>
                            </h:column>
                </h:dataTable>
                <a href="#" class="button"><span><span>Read More</span></span></a>
                <div class="pad_left1">
                        <h2 class="marg_top1">Evening Topic</h2>
                        <p><strong>Nemo ipsam voluptatem</strong><br/>
                                    Quia voluptas sit aspernatur aut odit aut fugit, seduia consequuntur magni dolores eos qui ratione. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non.<br/>
                                    numquam eius modi tempora incidunt ut labore et dolore magnam.</p>
                </div>
                <a href="#" class="button"><span><span>Read More</span></span></a>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
